<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="tx.bjdacp.model.*" %>
<%@ include file="/commons/taglibs.jsp" %>

<rapid:override name="head">
	<title><%=FileCatalog.TABLE_ALIAS%>新增</title>
	<link href="<c:url value="/widgets/simpletable/simpletable.css"/>" type="text/css" rel="stylesheet">
</rapid:override>

<rapid:override name="content">
	<s:form action="/pages/FileCatalog/saveList.do" method="post">

<table  class="gridBody">
<caption align="top"><b>药监档案案卷目录</b></caption>
<tr>
    <td >序号</td>
    <td >档号</td>
    <td >案卷题名</td>
    <td >年度</td>
    <td >审批号</td>
    <td >页数</td>
    <td >期限</td>
    <td >备注</td>
</tr>

	<tr>
		<input type="hidden" name="archiveCatalog.drugSellUnitId" value="${drugSellUnit.drugSellUnitId}" id="drugSellUnitId"/>
	<input type="hidden" name="archiveCatalog.archiveCatalogId" value="${archiveCatalog.archiveCatalogId}" id="archiveCatalogId"/>
    <td
><input type="text" name="archiveCatalog.fileNumber" value="${archiveCatalog. fileNumber}" id="save_fileNumber" class=""/></td>
 <td
><input type="text" name="archiveCatalog.seqNum" value="${archiveCatalog. seqNum}" id="save_seqNum" class="validate-integer max-value-2147483647"/></td>
<td
><input type="text" name="archiveCatalog.archiveCatalogName" value="${archiveCatalog. archiveCatalogName}" id="save_archiveCatalogName" class=""/></td>
<td
><input type="text" name="archiveCatalog.year" value="${archiveCatalog.year}" id="save_year" class=""/></td>
<td
><input type="text" name="archiveCatalog.shenpiNum" value="${archiveCatalog. shenpiNum}" id="save_shenpiNum" class=""/></td>
 <td
><input type="text" name="archiveCatalog.pageNum" value="${archiveCatalog. pageNum}" id="save_pageNum" class=""/></td>
 <td
><input type="text" name="archiveCatalog.timeLimit" value="${archiveCatalog. timeLimit}" id="save_timeLimit" class=""/></td>
<td
><input type="text" name="archiveCatalog.remark" value="${archiveCatalog. remark}" id="save_remark" class=""/></td>
</tr>

</table>

<table  class="gridBody">
<caption align="top"><b>药监档案总目录</b></caption>


	<tr>
    <td >序号</td>
     <td >案卷题名</td>
      <td >年度</td>
       <td >页数</td>
        <td >盒号</td>
         <td >审批号</td>
          <td >案卷号</td>
</tr>

	<tr>
	<td
><input type="text" name="totalCatalog.seqNum" value="${totalCatalog. seqNum+1}" id="save_seqNum" class="validate-integer max-value-2147483647"/></td>

    <td><input type="text" name="totalCatalog.catalogName" value="" id="saveList_catalogName" class=""/></td>
    <td
><input type="text" name="totalCatalog.year" value="" id="saveList_year" class=""/></td>
<td
><input type="text" name="totalCatalog.pageNum" value="" id="saveList_pageNum" class=""/></td>
<td
><input type="text" name="totalCatalog.boxNum" value="" id="saveList_boxNum" class=""/></td>
 <td
><input type="text" name="totalCatalog.shenpiNum" value="" id="saveList_shenpiNum" class=""/></td>
 <td
><input type="text" name="totalCatalog.catalogNum" value="" id="saveList_catalogNum" class=""/></td>

</tr>
		</table>



<table  class="gridBody">
<caption align="top"><b>卷内文件目录</b></caption>


	<tr>
    <td>顺序号</td>
 <td >文号</td>
 <td>责任者</td>
     <td >题名</td>
     <td >日期</td>
       <td >页号</td>
        <td >备注</td>
</tr>


  <c:forEach var="i" begin="0" end="19" step="1">
 <tr>

	<td><input type="text" name="fileCatalogs[${i }].seqNum" value="${i+1 }" id="saveList_seqNum" class=""/></td>


	<td><input type="text" name="fileCatalogs[${i }].refNum" value="" id="saveList_refNum" class=""/></td>


	<td><input type="text" name="fileCatalogs[${i }].dutyPerson" value="" id="saveList_dutyPerson" class=""/></td>


	<td><input type="text" name="fileCatalogs[${i }].fileCatalogName" value="" id="saveList_fileCatalogName" class=""/></td>


	<td><input type="text" name="fileCatalogs[${i }].fileCatalogDate" value="" id="saveList_fileCatalogDate" class=""/></td>


	<td><input type="text" name="fileCatalogs[${i }].pageNum" value="" id="saveList_pageNum" class=""/></td>


	<td><input type="text" name="fileCatalogs[${i }].remark" value="" id="saveList_remark" class=""/></td>

</tr>
</c:forEach>


		</table>
		<input id="submitButton" name="submitButton" type="submit" value="提交" />
		<input type="button" value="返回列表" onclick="window.location='${ctx}/pages/FileCatalog/list.do'"/>
		<input type="button" value="后退" onclick="history.back();"/>
	</s:form>

	<script>

		new Validation(document.forms[0],{onSubmit:true,onFormValidate : function(result,form) {
			var finalResult = result;

			//在这里添加自定义验证

			return disableSubmit(finalResult,'submitButton');
		}});
	</script>
</rapid:override>

<%-- jsp模板继承,具体使用请查看: http://code.google.com/p/rapid-framework/wiki/rapid_jsp_extends --%>
<%@ include file="base.jsp" %>